﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TelnetRouterApplication.View
{
    //Por algum motivo, essas classes de form/janela não aparecem nos testes
    public partial class InputBoxForm : Form
    {
        private string messageWritten;
        public string MessageWritten
        {
            get { return messageWritten; }
            set { messageWritten = value; }
        }

        public InputBoxForm()
        {
            InitializeComponent();
        }

        public InputBoxForm(string label)
            : this()
        {
            messageLabel.Text = label;
        }

        private void okBtn_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            messageWritten = textBox.Text;
            this.Close();
        }

        private void cancelBtn_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

    }
}
